import request from "@/utils/request";

// 查询住宿详情页面列表
export function listAccommodation_introduction(query) {
  return request({
    url: "/view/accommodation_introduction/list",
    method: "get",
    params: query,
  });
}

// 查询住宿详情页面详细
export function getAccommodation_introduction(id) {
  return request({
    url: "/view/accommodation_introduction/info",
    method: "get",
    params: { id: id },
  });
}

// 新增住宿详情页面
export function addAccommodation_introduction(data) {
  return request({
    url: "/view/accommodation_introduction",
    method: "post",
    data: data,
  });
}

// 修改住宿详情页面
export function updateAccommodation_introduction(data) {
  return request({
    url: "/view/accommodation_introduction",
    method: "put",
    data: data,
  });
}

// 删除住宿详情页面
export function delAccommodation_introduction(id) {
  return request({
    url: "/view/accommodation_introduction/" + id,
    method: "delete",
  });
}

// 导出住宿详情页面
export function exportAccommodation_introduction(query) {
  return request({
    url: "/view/accommodation_introduction/export",
    method: "get",
    params: query,
  });
}

// 查询场所列表
export function place_list(query) {
  return request({
    url: "/town/venue/list",
    method: "get",
    params: query,
  });
}

// 新增场所
export function place_add(data) {
  return request({
    url: "/town/venue",
    method: "post",
    data: data,
  });
}

// 获取场所详情信息
export function place_info(data) {
  return request({
    url: "/town/venue/info",
    method: "get",
    params: data,
  });
}

// 修改场所
export function place_update(data) {
  return request({
    url: "/town/venue",
    method: "put",
    data: data,
  });
}

// 删除场所
export function place_delete(id) {
  return request({
    url: "/town/venue/" + id,
    method: "delete",
  });
}

// 获取管理员列表
export function adminList(query) {
  return request({
    url: "/town/venue/getVenueAdmin",
    method: "get",
    params:query
  });
}
